<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<head>
    <meta charset="UTF-8">
    <title>系统初始化页面</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">

<!-- 页面容器 -->
<div class="max-w-4xl mx-auto p-6 bg-white rounded-lg shadow-md mt-10">
    <!-- 注销链接 -->
    <div class="text-right">
        <a th:href="@{/logout}" class="text-sm text-blue-600 hover:text-blue-800">注销</a>
    </div>

    <hr class="my-6 border-gray-300">

    <!-- 用户列表链接 -->
    <div class="my-4">
        <a th:href="@{/sys/user/list}"
           sec:authorize="@ss.hasPermi('sys:user:view')"
           class="text-lg font-semibold text-blue-500 hover:text-blue-700">
            用户列表
        </a>
    </div>

    <hr class="my-6 border-gray-300">

    <!-- 用户名显示 -->
    <div class="my-4">
        <p class="text-sm text-gray-700">
            <span class="font-medium">Username:</span>
            <span th:text="${username}"></span>
        </p>
    </div>

    <!-- 用户权限显示 -->
    <div class="my-4">
        <p class="text-sm text-gray-700">
            <span class="font-medium">Authorities:</span>
            <span th:text="${permissions}"></span>
        </p>
    </div>
</div>

</body>
</html>
